package com.king.platform.config;

//@Configuration
public class MongoConfig {
//  @Bean
//  MappingMongoConverter mappingMongoConverter(MongoDatabaseFactory mongoDatabaseFactory, MongoMappingContext context, MongoCustomConversions conversions) {
//    DbRefResolver dbRefResolver = new DefaultDbRefResolver(mongoDatabaseFactory);
//    MappingMongoConverter myMappingMongoConverter = new MappingMongoConverter(dbRefResolver, context);
//    myMappingMongoConverter.setCustomConversions(conversions);
//    //构造出DefaultMongoTypeMapper，把typeKey设置为null
//    myMappingMongoConverter.setTypeMapper(new DefaultMongoTypeMapper(null));
//    return myMappingMongoConverter;
//  }
}